package fr.umlv.escape_ig.editor;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import fr.umlv.escape_ig.convertion.Point;

public class Vessel {
	private Point p;
	private Point initialPoint;
	private final Bitmap m;
	
	public Vessel(Bitmap m, Point p){
		this.p=p;
		this.initialPoint=p;
		this.m=m;
	}
	public Point position(){
		return initialPoint;
	}
	
	public void setY(float y){
		p.setY((int) (p.getY()-y));
	}
	public void printVessel(Canvas canvas){
		canvas.drawBitmap(m, p.getX(), p.getY(), null);	
	}
}
